ATTACHMENT_fun_Plugins.push(function(img){
    if(img.attach_type=='.jpg' || img.attach_type=='.png'){
        return "<a href='#' onclick=\"attachment_title_img("+img.attach_id+",'"+img.attach_thumb+"');return false\">标题图片</a>";
    }else{
        return false;
    }
}
)
attachment_title_img=function(attach_id,attach_thumb){
    $('titleimg_element').value=attach_id;
    $('titleimgdiv').innerHTML="<img src='"+attach_thumb+"'/>"
}